<?php
if (!(defined('IN_IA'))) 
{
	exit('Access Denied');
}

//用户设置类
class Setting_MxShopPage extends MobileLoginPage
{
    //设置
	public function main()
    {
        //获取令牌
        $token = $this->getToken();
		include $this->template();
	}

    //用户原手机验证
    public function oldphone()
    {
        global $_W, $_GPC;

        if($_W['ispost']){

            //验证令牌
            if(empty($_GPC['token']) || !$this->checkToken($_GPC['token']))
            {
                show_json(0, '参数有误');
            }

            show_json(1, array('code'=>'666'));
        }

        //获取令牌
        $token = $this->getToken();
        include $this->template();
    }

    //用户新手机验证
    public function newphone()
    {
        global $_W, $_GPC;

        if($_W['ispost'])
        {
            //验证令牌
            if(empty($_GPC['token']) || !$this->checkToken($_GPC['token']))
            {
                show_json(0, '参数有误');
            }

            show_json(1, array('code'=>'666'));
        }

        //获取令牌
        $token = $this->getToken();
        include $this->template();
    }

}
